
console.log("webpack 项目的主入口文件 ---  main.js ")

var word = require('./demo')
var {type,count} = require("./ones")
var app = document.getElementById("app")


import list from "./es1"
import {tips} from './esones'

app.innerHTML += `<h2>wh2114-daydayup</h2>`
              +`<h2>wh2114-天道酬勤 </h2>`
              +`<h2>${word} </h2>`
              +`<h2>${type} -- ${count } </h2>`
              +`<h2>${list} </h2>`
              +`<h2>${tips} </h2>`


            //   require("./index.css")
// require("style-loader!css-loader!./index.css")
// require("style-loader!css-loader!less-loader!./demo.less")
// require("style-loader!css-loader!sass-loader!./style.scss")

// style-loader   Creates `style` nodes from JS strings  把样式代码转为JS 字符串 
// css-loader    Translates CSS into CommonJS  把css代码编译为commonJS 模块 (模块化)
// sass-loader   把scss代码编译成 css 

// import 'style-loader!css-loader!sass-loader!./style.scss'

// import "./index.css";
// import "./demo.less"
import "./style.scss"